﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml;
using System.Text;
using System.IO;
using System.Net.Mail;
using System.Net;
using System.Security.Cryptography;
using System.Globalization;
using System.Text.RegularExpressions;


public partial class admin_correo : System.Web.UI.Page
{
    protected void Page_Load()
    {
        string result;
        result = "";
        try
        {

            MailMessage message = new MailMessage();
            message.From = new MailAddress("astrid.bolanos@gmail.com");

            message.To.Add(new MailAddress("astrid.bolanos@gmail.com"));
            message.Subject = "Prueba";
            message.IsBodyHtml = true;
            message.Body = "Prueba";

            SmtpClient client = new SmtpClient();
            client.Host = "s2smtpout.secureserver.net";
            client.EnableSsl = false;
            client.UseDefaultCredentials = true;
            client.Port = 25;
            client.Credentials = new NetworkCredential("newclient@bpophotos.com", "photos1");
            client.Send(message);
            result = "ok";
            Label1.Text = "OK";
        }
        catch (Exception e) {
            Label1.Text = "Not Ok "+e.Message;
        }
        
}
           
               
    }